package com.lbw.model;

/**
 * @author lbw
 * @version 1.0
 * @date 2021/6/10 12:21
 */
public class Worker {
    private Integer index;
    private String name;
    private String workerId;
    private String job;
    private Integer age;

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public Worker(Integer index, String name, String workerId, String job, Integer age) {
        this.index = index;
        this.name = name;
        this.workerId = workerId;
        this.job = job;
        this.age = age;
    }

    public Worker() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWorkerId() {
        return workerId;
    }

    public void setWorkerId(String workerId) {
        this.workerId = workerId;
    }

    public String getJob() {
        return job;
    }

    @Override
    public String toString() {
        return "Worker{" +
                "index=" + index +
                ", name='" + name + '\'' +
                ", workerId='" + workerId + '\'' +
                ", job='" + job + '\'' +
                ", age=" + age +
                '}';
    }

    public void setJob(String job) {
        this.job = job;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
